/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [Driver02.java]
 * Creation Date        [24-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_principles.dip.example02;

import pkg_principles.dip.example01.ICar;

/**
 * Setters方法传递依赖对象
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class Driver02 implements IDriver02 {

	private ICar car;

	@Override
	public void setCar(ICar car) {
		this.car = car;
	}

	@Override
	public void drive() {
		car.run();
	}

}
